package org.ellwood.core.common.entity.socket;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.ellwood.core.common.enums.MessageTransferScopeEnum;
import org.ellwood.core.common.enums.SocketChannelEnum;

/**
 * @ProjectName: ellwood-boot-pro
 * @PackageName: org.ellwood.core.utils
 * @ClassName: SocketBean
 * @Description: // SocketBean
 * @Author: Ellwood
 * @CreateDate: 2024/6/13 - 下午11:47
 * @Version: V1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SocketBean<T> {

    {
        data = (T) "";
        channel = SocketChannelEnum.DEFAULTS;
        scope = MessageTransferScopeEnum.SOCKET_CLIENT;
    }

    @Schema(description = "data")
    protected T data;

    @Schema(description = "通道类型")
    protected SocketChannelEnum channel;

    @Schema(description = "消息通知作用域")
    protected MessageTransferScopeEnum scope;

}
